<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmAlerta.aspx.vb" Inherits="TGB.FrmAlerta" 
    title="Alertas" %>

<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="tabla" style="font-size: 12px; width: 100%; font-family: Calibri; height: 136px;
        text-align: center">
        <tr>
        </tr>
        <tr>
            <td align="center" colspan="5" style="height: 11px; text-align: left" width="100%">
                &nbsp;<div id="DIV1" style="width: 100%; height: 22px; background-color: #ccccff;
                    text-align: left">
                    <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Font-Size="Large" Font-Underline="False"
                        Height="30px" Text="Alertas" Width="100%"></asp:Label></div>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="1" style="width: 12%; height: 20px">
                <asp:Label ID="Label1" runat="server" CssClass="LblInfo" Text="Origen" Width="150px"></asp:Label></td>
            <td align="left" colspan="4" style="height: 20px">
                <asp:DropDownList ID="CboOrigen" runat="server" AutoPostBack="True">
                    <asp:ListItem Value="-1">NINGUNO</asp:ListItem>
                    <asp:ListItem Value="1">VENCIMIENTO - CHEQUE PROPIOS</asp:ListItem>
                    <asp:ListItem Value="2">VENCIMIENTO - CHEQUE TERCEROS</asp:ListItem>
                    <asp:ListItem Value="3">CUMPLEA&#209;OS</asp:ListItem>
                    <asp:ListItem Value="100">OTRO</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="TxtOrigen" runat="server" CssClass="campotxt" MaxLength="200" TabIndex="7"
                    Width="224px" Height="16px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 12%; height: 49px">
                &nbsp;<asp:Label ID="Label3" runat="server" CssClass="LblInfo" Text="Referencia"
                    Width="150px"></asp:Label></td>
            <td align="left" colspan="4" style="height: 49px">
                <asp:TextBox ID="TxtReferencia" runat="server" CssClass="campotxt" Height="56px"
                    MaxLength="500" TabIndex="8" TextMode="MultiLine" Width="624px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 12%; height: 25px">
                <asp:Label ID="Label2" runat="server" CssClass="LblInfo" Text="Fecha Inicio" Width="150px"></asp:Label></td>
            <td align="right" style="width: 20%; height: 25px">
                &nbsp;<BDP:BasicDatePicker ID="DPFechaInicio" runat="server" DateFormat="dd-MM-yyyy" DisplayType="LabelAndImage"
                    ReadOnly="True" ShowNoneButton="False" TodayButtonText="Hoy">
                </BDP:BasicDatePicker>
            </td>
            <td align="left" style="width: 18%; height: 25px">
                <asp:CheckBox ID="ChkFiltros" runat="server" AutoPostBack="True" Text="Mas Filtros"
                    Width="88px" ToolTip="El Rango de fecha para la Busqueda, para reducir la cantidad de elementos en la lista, esta establecida de forma predeterminada para buscar entre el dia de Hoy y 7 dias mas." /></td>
            <td align="left" style="width: 17%; height: 25px">
                &nbsp;<asp:Label ID="LblFechaInicioDesde" runat="server" CssClass="LblInfo" Text="Desde"
                    Width="40px"></asp:Label>
                <BDP:BasicDatePicker ID="DPFechaInicioDesde" runat="server" Columns="2" DateFormat="dd-MM-yyyy"
                    DisplayType="LabelAndImage" ReadOnly="True" TodayButtonText="Hoy" NoneButtonText="Ninguno">
                </BDP:BasicDatePicker>
                </td>
            <td align="left" style="width: 51px; height: 25px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 12%; height: 19px">
                <asp:Label ID="LblRecordatorio" runat="server" CssClass="LblInfo" Text="Fecha Recordatorio"
                    ToolTip="Fecha desde la que el recordatorio estara Vencido" Width="150px"></asp:Label></td>
            <td align="right" style="width: 20%; height: 19px">
                &nbsp;<BDP:BasicDatePicker ID="DPFechaRecordatorio" runat="server" DateFormat="dd-MM-yyyy"
                    DisplayType="LabelAndImage" ReadOnly="True" ShowNoneButton="False" TodayButtonText="Hoy">
                </BDP:BasicDatePicker>
            </td>
            <td align="left" style="width: 18%; height: 19px">
                </td>
            <td align="left" style="width: 17%; height: 19px">
                &nbsp;<asp:Label ID="LblFechaInicioHasta" runat="server" CssClass="LblInfo" Text="Hasta"
                    Width="40px"></asp:Label>
                <BDP:BasicDatePicker ID="DPFechaInicioHasta" runat="server" Columns="2" DateFormat="dd-MM-yyyy"
                    DisplayType="LabelAndImage" ReadOnly="True" TodayButtonText="Hoy" NoneButtonText="Ninguno">
                </BDP:BasicDatePicker>
            </td>
            <td align="left" style="width: 51px; height: 19px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 12%; height: 11px">
            </td>
            <td align="right" style="width: 20%; height: 11px">
            </td>
            <td align="right" style="width: 18%; height: 11px">
            </td>
            <td align="left" style="width: 17%; height: 11px">
                </td>
            <td align="left" style="width: 51px; height: 11px">
                </td>
        </tr>
        <tr>
            <td align="right" colspan="5" style="vertical-align: middle; height: 12px; text-align: center">
                <asp:Label ID="LblError" runat="server" CssClass="LabelError" Font-Bold="True" ForeColor="#C00000"></asp:Label><br />
                <asp:LinkButton ID="LnkGuardar" runat="server" CssClass="BotonLink" Font-Names="Cambria"
                    Font-Overline="True" Font-Size="12pt" Font-Strikeout="False" Font-Underline="True"
                    TabIndex="10" Visible="False">Guardar</asp:LinkButton>
                <asp:LinkButton ID="LnkBuscar" runat="server" CssClass="BotonLink" Font-Names="Cambria"
                    Font-Overline="True" Font-Size="12pt" Font-Strikeout="False" Font-Underline="True"
                    TabIndex="13">Buscar</asp:LinkButton>&nbsp;
                <asp:LinkButton ID="LnkEliminar" runat="server" CssClass="BotonLink" Font-Names="Cambria"
                    Font-Overline="True" Font-Size="12pt" Font-Strikeout="False" Font-Underline="True"
                    TabIndex="-1">Eliminar</asp:LinkButton>
                <asp:LinkButton ID="LnkCancelar" runat="server" CssClass="BotonLink" Font-Names="Cambria"
                    Font-Overline="True" Font-Size="12pt" Font-Strikeout="False" Font-Underline="True"
                    TabIndex="14">Cancelar</asp:LinkButton></td>
        </tr>
        <tr>
            <td align="center" colspan="5" style="vertical-align: middle; height: 12px; text-align: center">
                <asp:GridView ID="GridAlerta" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
                    BorderWidth="1px" CellPadding="4" CssClass="tabla" ForeColor="Black" GridLines="Horizontal"
                    PageSize="5" Style="font-size: 12px; vertical-align: middle; font-family: Calibri;
                    text-align: center" Width="100%">
                    <PagerSettings PageButtonCount="25" />
                    <Columns>
                        <asp:TemplateField HeaderText="CodigoAlerta">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CodigoAlerta") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                &nbsp;<asp:LinkButton ID="LnkVer" runat="server" CommandName="Select">Ver</asp:LinkButton>
                                <asp:HiddenField ID="HFCodigoAlerta" runat="server" Value='<%# bind("CodigoAlerta") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Origen">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Origen") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblOrigen" runat="server" Text='<%# Bind("Origen") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Referencia">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Referencia") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblReferencia" runat="server" Text='<%# Bind("Referencia") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Inicio">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("FechaInicial") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblInicio" runat="server" Text='<%# Bind("FechaInicial") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Vence">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("FechaVencimiento") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblVence" runat="server" Text='<%# Bind("FechaVencimiento") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Completo">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LnkCompleto" runat="server" CommandName="Completo">Completo</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <asp:ImageButton ID="LnkImprimirAlertas" runat="server" AlternateText="Imprimir Listado de Alertas segun el Criterio Establecido"
                    ImageUrl="~/imagenes/Iconos/Imprimir.jpg" /></td>
        </tr>
        <tr>
            <td align="right" colspan="5" style="vertical-align: middle; height: 22px; text-align: center">
                <asp:Label ID="LblTituloVencidas" runat="server" CssClass="titulo" Font-Size="Large" Font-Underline="False"
                        Height="30px" Text="Elementos Vencidos" Width="100%" BorderColor="LightGray"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" colspan="5" style="vertical-align: middle; height: 12px; text-align: center">
                <asp:GridView ID="GridAlertasVencidas" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" BackColor="Gainsboro" BorderColor="#CCCCCC" BorderStyle="None"
                    BorderWidth="1px" CellPadding="4" CssClass="tabla" ForeColor="Black" GridLines="Horizontal"
                    Style="font-size: 12px; vertical-align: middle; font-family: Calibri; text-align: center"
                    Width="100%">
                    <PagerSettings PageButtonCount="25" />
                    <Columns>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("CodigoAlerta") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                &nbsp;
                                <asp:HiddenField ID="HFCodigoAlerta" runat="server" Value='<%# bind("CodigoAlerta") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Referencia">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Referencia") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblReferencia" runat="server" Text='<%# Bind("Referencia") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Origen">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Origen") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblOrigen" runat="server" Text='<%# Bind("Origen") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Inicio">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("FechaInicial") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblInicio" runat="server" Text='<%# Bind("FechaInicial") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Vence">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("FechaVencimiento") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="LblVence" runat="server" Text='<%# Bind("FechaVencimiento") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LnkQuitar" runat="server" CommandName="Eliminar" ToolTip="Se Eliminara El Elemento Seleccionado">Quitar</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Completo") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LnkCompletoVencido" runat="server" CommandName="Completo" ToolTip="Se Completo La Tarea">Completo</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#FF8080" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    
</asp:Content>
